package com.heiye.blog.ai.domain.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.heiye.blog.ai.domain.dos.RoleSoundLanguageDO;

import java.util.List;

/**
 * @author: heiye
 * @date: 2025/11/06 下午6:16
 * @version: v1.0.0
 * @description: TODO
 */
public interface RobotSoundLanguageMapper extends BaseMapper<RoleSoundLanguageDO> {

    /**
     * 根据智能体语音模型 ID 查询支持语言列表
     *
     * @param roleSoundIds
     * @return
     */
    default List<RoleSoundLanguageDO> selectByRobotSoundIds(List<Long> roleSoundIds) {
        return selectList(Wrappers.<RoleSoundLanguageDO>lambdaQuery()
                .in(RoleSoundLanguageDO::getRoleSoundId, roleSoundIds));
    }
}
